host = 'http://192.168.132.131:38000/'

path_login_1 = 'api2/auth-token/'
path_info_2 = 'api2/account/info/'
path_add_or_select_3_4 = 'api2/repos/'


def get_path_5_6_7_8(repo_id, x, file_name=None):
    if x == 5:
        # http://192.168.88.130:38000/api2/repos/1.4查询到的repoid/?op=rename
        path_modify = host + f'api2/repos/{repo_id}/?op=rename'
        return path_modify
    elif x == 6:
        # http://192.168.88.130:38000/api2/repos/id(1.4接口里查到的资料库id值)/
        path_delete = host + f'api2/repos/{repo_id}/'
        return path_delete
    elif x == 7 or x == 8:
        # http://192.168.88.130:38000/api2/repos/资料库id/file/?p=/aaa&reloaddir=true
        path_add_file = host + f'api2/repos/{repo_id}/file/?p=/{file_name}&reloaddir=true'
        return path_add_file
